<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Msgs extends Model
{
    protected $table = 'msgs';
    protected $fillable = [
        'openid','content','created_at'
    ];
    public $timestamps = false;
    protected $dates = ['created_at'];

    public function user(){
        return $this->belongsTo('App\Models\Users', 'openid', 'openid');
    }

}
